#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<string.h>
#include<assert.h>

int my_strlen(const char* str)
{
	assert(str);
	char* s = str;
	int count = 0;
	while (*s++)
	{
		count++;
	}
	return count;
}

int main()
{
	char arr[] = "abcde";
	printf("%d\n", my_strlen(arr));

	return 0;
}

